Calling a function as soon as an element is encountered. [Jquery]

Posted by Waseem on Stack Overflow See other posts from Stack Overflow or by Waseem
Published on 2010-03-18T10:36:53Z Indexed on 2010/03/18 10:41 UTC
Read the original article Hit count: 279

Filed under:
|

Suppose I have an element on my page with id "some_id". I want to call a function as soon as I encounter this element. Something like following.

$("#some_id").call_a_function(function () {
  // do stuff
});

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript